package cn.com.fig.control;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.com.fig.service.DictionaryService;

/**
 * 数据字典类，通过字典关键字查询某字典得内容。
 * @author Administrator
 *
 */
@RestController
@RequestMapping("/dictionary")
public class DictionaryControl {
	@Autowired
	private DictionaryService dictionaryService;
	
	@RequestMapping("/list")
	public List<Map<String,Object>> list(String dicId) {
		return dictionaryService.listDic(dicId);
	}
}
